#if !defined(AFX_COLORBOX_H__5E19D143_5AC2_416D_AE91_4C9C8E234729__INCLUDED_)
#define AFX_COLORBOX_H__5E19D143_5AC2_416D_AE91_4C9C8E234729__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ColorPalette.h"
#include "ChildToolBar.h"
#include "CellInfo.h"
// ColorBox.h : header file
//

class CColorBox : public CDialogBar
{
// Construction
public:
	void SetColor(CCellInfo &cellinfo);
	void UpdateFontImage(int nFontIndex);
	BOOL m_bVert;
	void UpdateSampleText(BOOL bUpdateSize = TRUE);
	CColorBox();   // standard constructor
	virtual ~CColorBox();   // standard constructor

// Dialog Data
	//{{AFX_DATA(CColorBox)
	enum { IDD = IDD_COLORBOX };
	CColorPalette	m_palette;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CColorBox)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	virtual CSize CalcDynamicLayout(int nLength, DWORD dwMode);
	virtual BOOL SetStatusText(int nHit);
// Implementation
protected:
	CChildToolBar m_tb;
	//BSTR m_bsVertSampleText;
	CComBSTR m_bsVertSampleText;
	CFont m_font;

	// Generated message map functions
	//{{AFX_MSG(CColorBox)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	afx_msg LONG OnInitDialog(UINT, LONG);
	afx_msg BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnToolbarDropDown(NMTOOLBAR* pnmh, LRESULT* plRes);
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COLORBOX_H__5E19D143_5AC2_416D_AE91_4C9C8E234729__INCLUDED_)
